﻿using System;
using Test.DAL.Abstracts;
using Test.Domain;
using TianShu.Modularity;
using Microsoft.Extensions.DependencyInjection;
using TianShu.Domain;
using TianShu.SqlSugarCore.Services;
using TianShu.TenantManagement.Dal;

namespace Test.DAL
{
    [DependsOn(
        typeof(TestDALAbStractsModule),
        typeof(TianShuTenantManagementDalModule),
        typeof(TianShuDomainModule)
        )]
    public class TestDALModule:AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddSqlSugarRepositories(typeof(TestDALAbStractsModule).Assembly);
            context.Services.RegisterTransient<IDalService>(this.GetType().Assembly);
        }
    }
}
